import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AreaTopPage from '../views/AreaTopPage.vue'  //各地区
import AreasProportionPage from '../views/AreasProportionPage.vue' //主要地区种植占比
import CropCoveragePage from '../views/CropCoveragePage.vue' //地图
import GrowthTrendPage from '../views/GrowthTrendPage.vue' //种植增长趋势
import TotalAreaPage from '../views/TotalAreaPage.vue' //种植面积统计
import plantingHarvestPage from '../views/plantingHarvestPage.vue'  //全国种植每月收成情况

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    component: HomeView
  },{
    path:'/areaTop',
    component:AreaTopPage
  },{
    path:'/crop',
    component:AreasProportionPage
  },{
    path:'/coverage',
    component:CropCoveragePage
  }, {
    path:'/growth',
    component:GrowthTrendPage
  },{
    path:'/TotalArea',
    component:TotalAreaPage
  },{
    path:'/plan',
    component:plantingHarvestPage
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
